package com.careerraiser.testing;

import com.careerraiser.child.DoberMan;
import com.careerraiser.child.Pamerian;
import com.careerraiser.parent.Animal;
import com.careerraiser.xtra.Elephant;
import com.careerraiser.xtra.Int1;

public class TestStatics {
	static{
	System.out.println("inside static block");
	Pamerian.setInitialSpeed(100);
	myBasevariable="mytestvalue";
	}
	private static final String myBasevariable;
     private int testint=50;
	public static void main(String[] args) {
		System.out.println("at entry of main method");
		Pamerian pam1=new Pamerian("pam1", 10, 10);
		Pamerian pam2=new Pamerian("pam2", 10, 20);
		Pamerian pam3=new Pamerian("pam3", 10, 30);
		System.out.println(myBasevariable);
	//	System.out.println(testint);
		System.out.println(pam1.getSpeed());
		
		System.out.println("pamerian dogtype"+pam3.getDogtype());
		DoberMan dob1=new DoberMan("dob1");
		System.out.println("doberman dogtype"+dob1.getDogtype());
		if(pam1.getDogtype().equals(dob1.getDogtype())){
			System.out.println("dogtypes matched");
		}else{
			System.out.println("dogtypes dont match");
		}
	}

	public static  void processheaddetails(Elephant.HeadDetails head){
		System.out.println(head.getEyes()+"::"+head.getBrain());

	}
	
	public static void testLocalClass(Int1 var1){
		var1.testmethod1();
		System.out.println(var1.testmethod2());
	}

	public static void testTestAnimal(Animal methodLocal) {
		methodLocal.makeSound();
		
	}
}
